import request from '@/utils/request'
import { M, C } from '@/api/apiPrefix'
export const queryProjectListApi = params => request({
    url: `/${M.business}/${C.project}/list`,
    params
})
export const queryProjectNameApi = projectName => request({
    url: `/${M.business}/${C.project}/findRepeat`,
    method: 'get',
    params: { projectName }
})
export const addProjectApi = data => request({
    url: `/${M.business}/${C.project}`,
    method: 'post',
    data
})
export const updateProjectApi = data => request({
    url: `/${M.business}/${C.project}`,
    method: 'put',
    data
})
export const updateProjectStatusApi = data => request({
    url: `/${M.business}/${C.project}/status`,
    method: 'put',
    data
})
export const delProjectApi = ids => request({
    url: `/${M.business}/${C.project}/${ids}`,
    method: 'delete'
})
